﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.AutoUpdate.Security;
using System.Text;
using System.Threading.Tasks;

namespace System.AutoUpdate.Library
{
    /// <summary>
    /// Wrapper for each update file
    /// </summary>
    public class UpdateFile
    {
        public string Hash
        {
            get;
            set;
        }

        public HashAlgorithmType HashType
        {
            get;
            set;
        }

        public string RemotePath
        {
            get;
            set;
        }

        public string LocalPath
        {
            get;
            set;
        }

        public string LocalFilename
        {
            get;
            set;
        }

        public string AbsoluteLocalPath
        {
            get
            {
                return LocalPath + LocalFilename;
            }
        }

        public long FileSize
        {
            get;
            set;
        }

        public bool IsTransfered
        {
            get;
            set;
        }
    }
}
